Plotter in TIC-80

Forewords Currenltly, the only mandatory key is ptype which takes either plot or polar. There is no mandatory value for any sections other than that, however the func and funcx values are very sensitive (because they are parsed using a very simple load(<code string>) function). You can also remove the ptype and manually call the functions in the TIC() functions. Also, use ... as the variable when defining functions! { func = "1" -- [string] <compilable to function> funcx = "..." -- [string] <compilable to function> start = -100 -- [number] finish = 100 -- [number] prec = 0.1 -- [number] color = 2 -- [number] label = "function" -- [string] ptype = plot -- <function>: plot, polar. // planned: plot3d, polar3d, plotiz } A typical function is like this: For a polar() function, consider func as a polar function, for a normal plot(), if you only define func, the code behaves as a normal function on the 2d plane (y=func(x)). Changing funcx results in a curve of lambda=(funcx(t),func(t)). ...

August 18, 2024